package com.lbw.builder.important;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/10/17 23:02
 */
public abstract class HouseBuilder {

    protected House house = new House();

    // 将建造的流程写好. 抽象的方法
    public abstract void buildBasic();

    public abstract void buildWalls();

    public abstract void roofed();


    // 建好房子后, 返回房子
    public final House buildHouse() {
        return house;
    }
}
